/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rbh.risk.service;

import com.rbh.risk.entity.Privilege;
import com.rbh.risk.entity.RiskData;
import com.rbh.risk.entity.SeverityLevel;
import com.rbh.risk.entity.Workgroup;
import com.rbh.risk.model.SummaryLevelModel;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface RiskDataService {

    public void insert(RiskData risk);

    public void update(RiskData risk);

    public void delete(RiskData risk);

    public RiskData getById(String riskId);

    public List<RiskData> getAll();

    public List<RiskData> getByProfile(HashMap<Privilege, String> privileges, Date dateFrom, Date dateTo);

    public List<SummaryLevelModel> getMinorSummaryLevels(Workgroup workgroup, Date from, Date to);

    public List<SummaryLevelModel> getMajorSummaryLevels(HashMap<Privilege, String> privileges, Date from, Date to);

    public List<RiskData> getListRiskDetail(HashMap<Privilege, String> privileges, Workgroup workgroup, SeverityLevel level, Date from, Date to);

    public List<RiskData> getByFilter(int first, int pageSize, String sortField, boolean sortOrder, Map<String, String> filters);

    public Integer getMaxResult(Map<String, String> filters);
}